#include <iostream>
#include <list>
#include "sst_table.h"

namespace VirtualR {
class LevelNonZero {
 public:
  LevelNonZero(std::string dir);
  void get_index_content_for_debug();
  uint64_t size();
  std::vector<Entry_t> get_entry();
  void merge(std::vector<Entry_t> entries, uint64_t &no);
  void clear();
  std::pair<bool, std::string> search(std::string key);

 private:
  void dump_index_to_disk();
  std::string dir_;
  std::list<SSTable> sst_list_;
  std::string last_key_;
  uint64_t total_byte_size_{0};
  uint64_t file_count_{0};
};
}